package ru.xeden.web.html.dom;

import java.io.PrintWriter;

import ru.xeden.web.html.RenderContext;

public final class Comment 
    extends Node
{
    private final String comment;

    public Comment(String comment)
    {
        this.comment = comment;
    }

    @Override
    public void toMarkup(RenderContext markupContext, PrintWriter writer)
    {
        writer.print("<!--");
        writer.print(comment);
        writer.print("-->");
    }
}
